<template>
  <div>
    Directive
    {{$route.params.count}}
    <div v-test="name"></div>
  </div>
</template>

<script>
export default {
  name: "Directive",
  data() {
    return {
      name: "zhaozhao"
    };
  },
  directives: {
    test: {
      inserted: function(el, binding) {
        console.log(binding);
      },
      bind:function(el,binding,vnode){
          el.innerHTML = binding.value
      }
    }
  }
};
</script>

<style scoped>
</style>